package org.zcl.service.account;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.zcl.entity.dto.AccountDto;
import org.zcl.entity.response.ChannelResponse;

/**
 * @Package com.mall.web.pay.request
 * @PROJECT_NAME: iap-mall
 * @DESCRIPTION: 账户余额支付
 * @USER: zhuchenglin
 * @DATE: 2022/8/8 10:36
 */
@Slf4j
@Service
public class AccountPayImpl extends AbstractAccountService<AccountDto> {


    /**
     * 扣减资金账户福豆
     */
    @Override
    protected ChannelResponse doApplyPay(AccountDto accountPayDto) {
        log.info("调用扣减资金账户渠道请求对象:{}", JSON.toJSONString(accountPayDto));
        ChannelResponse<String> response = new ChannelResponse<>();
        response.setCode("success");
        response.setT("account");
        return response;
    }

}
